package com.example.cloud.dao.business.medical;

import com.example.cloud.model.business.medical.TreatPlanCourseDetails;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by wangtao on 2018/5/17.
 */
@Repository
public interface TreatPlanCourseDetailsRepository extends JpaRepository<TreatPlanCourseDetails,Long> {
    int deleteByCourseId(Long id);
    List<TreatPlanCourseDetails> findByPatientIdAndExecuteStatus(Long patientId, int executeStatus);
    List<TreatPlanCourseDetails> findByComplaintIdAndDeleteFlag(Long complaintId, int deleteFlag);
    List<TreatPlanCourseDetails> findByCourseIdAndDeleteFlag(Long courseId, int deleteFlag);
}
